package com.mars.dao;

import com.mars.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    List<User> getUserList();

    //R
    User getUserById(int id);
    //C
    int addUser(User user);
    //U
    int updateUser(User user);
    //D
    int deleteUser(int id);

    User getUserByIdName(Map<String, Object> map);



}
